/**
 * Copyright(c): 2017 com.mjduan All rights reserved.
 * 项目名：learn-spring-web
 * 注意：未经作者允许，不得外传
 */
package com.mjduan.project.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author dmj1161859184@126.com 2018-07-27 15:59
 * @version 1.0
 * @since 1.0
 */
@Controller
@RequestMapping(value = "user")
public class UserController {

    @RequestMapping(value = "username")
    @ResponseBody
    public String getUserName(){
        return "Doloers";
    }

    @RequestMapping(value = "login")
    public String login(){
        return "main";
    }

    @RequestMapping(value = "logout")
    public String logout(){
        return "login";
    }
}
